<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>text-align 实现水平居中</title>
    <style lang="css">
        * {
            padding: 0;
            margin: 0;
        }
        
        body {
            text-align: center;
        }
    </style>
</head>

<body>
    <image src="../menhera.jpg"></image>
</body>

</html>